package com.epoint.mobileoa.tools.controls.tree.codeitemtree;

import java.util.List;
import java.util.Map;

import android.widget.EditText;

/**
 * @author liyc
 * @time 2012-8-8 上午11:21:27
 * @annotation 
 */
public class TreeDateDealHelp {
	
	public static void DealChooseTreeData(EditText etField){
		
		List<Map<String,String>> chooseNodeData = CodeItemTree.chooseNodeData;
		if(chooseNodeData!=null){
			if(chooseNodeData.size()>0){
				String ccdq = "";
				String ccdqcode = "";
				for(int i=0;i<chooseNodeData.size();i++){
					ccdq += chooseNodeData.get(i).get("text")+";";
					ccdqcode += chooseNodeData.get(i).get("param1")+";";
				}
				etField.setText(ccdq);
				etField.setTag(ccdqcode);
			}
			else{
				etField.setText("");
				etField.setTag("");
			}
		}
		else{
			etField.setText("");
			etField.setTag("");
		}
		CodeItemTree.chooseNodeData.clear();
	}
}
